package com.f5.management.dao;

import com.f5.management.entity.Member;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface MemberDao {
    /**
     * @param member
     * 添加一次人员数据
     */

    void insertOne(Member member);

    /**
     * @param id
     * 根据id删除人员
     */
    void deleteById(int id);

    /**
     * @param member 更新用户
     */
    void updateMember(@Param("member") Member member, @Param("id") int id);

    /**
     * @param id 根据id查询用户
     * @return oneMember
     */
    Member selectMemberById(int id);
    List<Member> getAllMembers();

/*
    Member get(int id);

    Member getByName(String username);
*/
}
